//package vip.geeker.iotms.help;
//
//import com.baomidou.mybatisplus.extension.plugins.OptimisticLockerInterceptor;
//import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
//import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
//import com.baomidou.mybatisplus.extension.plugins.pagination.optimize.JsqlParserCountOptimize;
//import com.github.pagehelper.PageHelper;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Profile;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
//
//import java.util.Properties;
//
///**
// * @Author zhoup
// * @Date 2020/4/30 2:22 下午
// * @Description mybatis plus 配置类
// * @Email acacio@foxmail.com
// * To change this template use File | Settings | Editor | File and Code Templates.
// **/
//@EnableTransactionManagement
//@Configuration
//public class MybatisPlusConfig {
//
//////    /**
//////     * 分页插件
//////     */
////    @Bean
////    public PaginationInterceptor paginationInterceptor() {
////        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
////        paginationInterceptor.setDialectType("postgres");
////        return new PaginationInterceptor();
////    }
//
//    /**
//     * 乐观锁
//     */
//    @Bean
//    public OptimisticLockerInterceptor optimisticLockerInterceptor() {
//        return new OptimisticLockerInterceptor();
//    }
//
//    @Bean
//    @Profile({"dev", "test", "zhoup", "jxl"})// 设置 dev test 环境开启
//    public PerformanceInterceptor performanceInterceptor() {
//        PerformanceInterceptor performanceInterceptor = new PerformanceInterceptor();
//        performanceInterceptor.setFormat(true);
//        return performanceInterceptor;
//    }
//
//}
